
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>用户中心</title>
</head>


<?php


    echo '用户中心<br>';

    if (isset($_COOKIE['Token'])){
        echo'cookies存在<br>';
        echo $_COOKIE['Token'];
    }else{
        echo'cookkies不存在<br>';
    }

?>
    <p>上传产品图：<input type="file" name="file" id="file" multiple onchange="showimg();"></p>
    <img src="" id="imgid">

</body>
    <script>
        function showimg () {
            var fileObj = document.getElementById('file');
            var URL = window.URL || window.webkitURL;
            var imgURL = URL.createObjectURL(fileObj.files[0]);
            document.getElementById('imgid').src=imgURL;


        }

    </script>
</html>

